import request from './request'

/**
 * 
 * @param {文章轮播} data 
 */
 function getList(data) {
	return request({
		url:'/business/api/article/selectRotationList',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {专业列表} data 
 */
function ksList(data){
	return request({
		url:'/business/api/ks/list',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {校园风采} data 
 */
function selectStyleList(data){
	return request({
		url:'/business/api/article/selectStyleList',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {专栏列表} data 
 */

function selectSpecialList (data){
	return request({
		url:'/business/api/article/selectSpecialList',
		method:'get',
		params:data
	})
}
/**
 * 文章列表
 * @param {
	*categoryId 栏目id {7 学校概况
		8 校园内外
		9 校园风采
		10 老教工作
		11 学生之窗
		12 群众路线专题
		13 专业设置
		14 专题专栏
		15 教学研究
		16 关于本站
		17 联系我们
		18 网站地图
		19 法律声明}
	*tagId  子栏目id
	*pageNum  页码
	*pageSize 数量
} data 
 */
function articleList(data){
	return request({
		url:'/business/api/article/list',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {文章详情} data 
 */
function articleGetlist(data) {
	return request({
		url:'/business/api/article/getInfo',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {获取栏目标签} data 
 */
function TagsGetList(data){
	return request({
		url:'/business/api/tags/getList',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {校园内外文章} data 
 */
function selectCampusList(data){
	return request({
		url:'/business/api/article/selectCampusList',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {师资力量} data 
 */
function teacherList (data) {
	return request({
		url:'/business/api/teacher/getList',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {统计网站访问量} data 
 */
function countBizSiteVisit(data) {
	return request({
		url:'/business/api/visit/countBizSiteVisit',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {新增访问量} data 
 */
function visitAdd(data) {
	return request({
		url:'/business/api/visit/add',
		method:'post',
		data:data
	})
}
/**
 * 
 * @param {广告} data 
 */
function getPosterInfo(data) {
	return request({
		url:'/business/api/poster/getPosterInfo',
		method:'get',
		params:data
	})
}
/**
 * 
 * @param {学校概况} data 
 */
function article(data) {
	return request({
		url:'/business/api/article',
		method:'get',
		params:data
	})
}
function selectMasseslList(data){
  return request({
    url:'/business/api/article/selectMasseslList',
    method:'get',
    param:data
  })
}

/**
 * 
 * @param {师资管理} data 
 */
function getCompletion(data) {
	return request({
		url:'/business/api/teacher/list',
		method:'get',
		params:data
	})
}



export default {
	getList,
	ksList,
	getCompletion,
	selectStyleList,
	selectSpecialList,
	selectCampusList,
	articleList,
	TagsGetList,
	articleGetlist,
	teacherList,
	countBizSiteVisit,
	visitAdd,
	getPosterInfo,
	article,
  selectMasseslList
}